﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020002F1 RID: 753
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class ClientDownloadDataScNotify : IMessage<ClientDownloadDataScNotify>, IMessage, IEquatable<ClientDownloadDataScNotify>, IDeepCloneable<ClientDownloadDataScNotify>, IBufferMessage
	{
		// Token: 0x170009B9 RID: 2489
		// (get) Token: 0x060021A1 RID: 8609 RVA: 0x0005EFA1 File Offset: 0x0005D1A1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<ClientDownloadDataScNotify> Parser
		{
			get
			{
				return ClientDownloadDataScNotify._parser;
			}
		}

		// Token: 0x170009BA RID: 2490
		// (get) Token: 0x060021A2 RID: 8610 RVA: 0x0005EFA8 File Offset: 0x0005D1A8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return ClientDownloadDataScNotifyReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170009BB RID: 2491
		// (get) Token: 0x060021A3 RID: 8611 RVA: 0x0005EFBA File Offset: 0x0005D1BA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return ClientDownloadDataScNotify.Descriptor;
			}
		}

		// Token: 0x060021A4 RID: 8612 RVA: 0x0005EFC1 File Offset: 0x0005D1C1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ClientDownloadDataScNotify()
		{
		}

		// Token: 0x060021A5 RID: 8613 RVA: 0x0005EFC9 File Offset: 0x0005D1C9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ClientDownloadDataScNotify(ClientDownloadDataScNotify other) : this()
		{
			this.downloadData_ = ((other.downloadData_ != null) ? other.downloadData_.Clone() : null);
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x060021A6 RID: 8614 RVA: 0x0005EFFE File Offset: 0x0005D1FE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ClientDownloadDataScNotify Clone()
		{
			return new ClientDownloadDataScNotify(this);
		}

		// Token: 0x170009BC RID: 2492
		// (get) Token: 0x060021A7 RID: 8615 RVA: 0x0005F006 File Offset: 0x0005D206
		// (set) Token: 0x060021A8 RID: 8616 RVA: 0x0005F00E File Offset: 0x0005D20E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ClientDownloadData DownloadData
		{
			get
			{
				return this.downloadData_;
			}
			set
			{
				this.downloadData_ = value;
			}
		}

		// Token: 0x060021A9 RID: 8617 RVA: 0x0005F017 File Offset: 0x0005D217
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as ClientDownloadDataScNotify);
		}

		// Token: 0x060021AA RID: 8618 RVA: 0x0005F025 File Offset: 0x0005D225
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(ClientDownloadDataScNotify other)
		{
			return other != null && (other == this || (object.Equals(this.DownloadData, other.DownloadData) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x060021AB RID: 8619 RVA: 0x0005F058 File Offset: 0x0005D258
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.downloadData_ != null)
			{
				num ^= this.DownloadData.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x060021AC RID: 8620 RVA: 0x0005F094 File Offset: 0x0005D294
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x060021AD RID: 8621 RVA: 0x0005F09C File Offset: 0x0005D29C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x060021AE RID: 8622 RVA: 0x0005F0A5 File Offset: 0x0005D2A5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.downloadData_ != null)
			{
				output.WriteRawTag(18);
				output.WriteMessage(this.DownloadData);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x060021AF RID: 8623 RVA: 0x0005F0D8 File Offset: 0x0005D2D8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.downloadData_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.DownloadData);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x060021B0 RID: 8624 RVA: 0x0005F118 File Offset: 0x0005D318
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(ClientDownloadDataScNotify other)
		{
			if (other == null)
			{
				return;
			}
			if (other.downloadData_ != null)
			{
				if (this.downloadData_ == null)
				{
					this.DownloadData = new ClientDownloadData();
				}
				this.DownloadData.MergeFrom(other.DownloadData);
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x060021B1 RID: 8625 RVA: 0x0005F16C File Offset: 0x0005D36C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x060021B2 RID: 8626 RVA: 0x0005F178 File Offset: 0x0005D378
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 18U)
				{
					this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				}
				else
				{
					if (this.downloadData_ == null)
					{
						this.DownloadData = new ClientDownloadData();
					}
					input.ReadMessage(this.DownloadData);
				}
			}
		}

		// Token: 0x04000DB4 RID: 3508
		private static readonly MessageParser<ClientDownloadDataScNotify> _parser = new MessageParser<ClientDownloadDataScNotify>(() => new ClientDownloadDataScNotify());

		// Token: 0x04000DB5 RID: 3509
		private UnknownFieldSet _unknownFields;

		// Token: 0x04000DB6 RID: 3510
		public const int DownloadDataFieldNumber = 2;

		// Token: 0x04000DB7 RID: 3511
		private ClientDownloadData downloadData_;
	}
}
